package com.mollytask.superadmin;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mollytask.R;
import com.mollytask.bean.Institution;

import java.util.List;

/**
 * Created by freshxu on 2017/5/24.
 */

public class RemindAdapter extends BaseQuickAdapter<Institution, BaseViewHolder> {

    String year;

    public RemindAdapter(@LayoutRes int layoutResId, @Nullable List<Institution> data, String year) {
        super(layoutResId, data);
        this.year = year;
    }

    @Override
    protected void convert(BaseViewHolder helper, Institution item) {
        helper.setText(R.id.remind_name, item.getmInName());
        helper.setText(R.id.remind_year, "缺报年份：" + year);

    }
}
